package com.hjx.movie.core.security.service;

import com.hjx.movie.core.security.model.AuthUser;
import com.hjx.movie.persistence.system.model.IvyMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>Title:</p>
 * <p>Description:</p>
 *
 * @author hjx
 * @date 2021/1/4 - 0:12
 */
public interface IAuthService{
    String findUserIdByLoginType(String username,Integer loginType);
    String findUserId(String username);
    AuthUser findUserById(String uid);
    List<String> findRoleByUserId(Long uid);
    List<String> findAuthByRoleCode(List<String> roles);
    List<Long> findRoleIdByUserId(Long uid);
    List<String> findAuthByRoleId(List<Long> roles);
    List<String> findAuthByUserId(Long uid);
    List<IvyMenu> findMenuByRoleId(List<Long> roleIds);
}
